<template>
<div>
  <van-fielsd label="请输入搜索内容" />
  <van-button>搜索</van-button>
  <ul>
    <li v-for="i in list">{{i.title}}</li>
  </ul>
</div>
</template>

<script>
export default {
name: "seek",
  data(){
  return{
    title:"",
    list:[]
  }
  },
  methods:{
    search(){
      this.$axios.get('search?title='+this.title).then(res=>{
        this.list = res.data.list
      })
    }
  },
  mounted() {

  }
}
</script>

<style scoped>

</style>
